// This file was created by Filewrap 1.1
// Little endian mode
// DO NOT EDIT

#include "../PVRTMemoryFileSystem.h"

// using 32 bit to guarantee alignment.
#ifndef A32BIT
 #define A32BIT static const unsigned int
#endif

// ******** Start: FragShader.fsh ********

// File data
static const char _FragShader_fsh[] = 
	"uniform sampler2D  sThicknessTex;\r\n"
	"\r\n"
	"uniform highp float  MinThickness;\r\n"
	"uniform highp float  MaxVariation;\r\n"
	"\r\n"
	"varying mediump float  CosViewAngle;\r\n"
	"varying mediump float  LightIntensity;\r\n"
	"varying mediump vec2   TexCoord;\r\n"
	"\r\n"
	"// We use wave numbers (k) for the iridescence effect, given as\r\n"
	"//   k =  2 * pi / wavelength in nm.\r\n"
	"const highp float  PI = 3.141592654;\r\n"
	"const highp vec3   cRgbK = 2.0 * PI * vec3(1.0/475.0, 1.0/510.0, 1.0/650.0);\r\n"
	"\r\n"
	"void main()\r\n"
	"{\r\n"
	"\thighp float thickness = texture2D(sThicknessTex, TexCoord).r * MaxVariation + MinThickness;\r\n"
	"\thighp float delta = (thickness / LightIntensity) + (thickness / CosViewAngle);\r\n"
	"\tlowp vec3 color = cos(delta * cRgbK) * LightIntensity;\r\n"
	"\tgl_FragColor = vec4(color, 1.0);\r\n"
	"}";

// Register FragShader.fsh in memory file system at application startup time
static CPVRTMemoryFileSystem RegisterFile_FragShader_fsh("FragShader.fsh", _FragShader_fsh, 730);

// ******** End: FragShader.fsh ********

// This file was created by Filewrap 1.1
// Little endian mode
// DO NOT EDIT

#include "../PVRTMemoryFileSystem.h"

// using 32 bit to guarantee alignment.
#ifndef A32BIT
 #define A32BIT static const unsigned int
#endif

// ******** Start: FragShader.fsc ********

// File data
A32BIT _FragShader_fsc[] = {
0x10fab438,0xbedeb38e,0x30050100,0x2501,0xd363e337,0x2000000,0x20000000,0x3b070000,0x1000000,0x4000000,0x0,0x38000000,0x20202,0x0,0x2020078,0x2,0x0,0x4030000,0x55535020,0x20,0x2f8,0x1,0x0,0x0,0x224,0x80,0x2,0x7d,0x0,0x8,0x0,0xffffffff,0x0,0x770009,0xffff,0x30003,0x0,0x30000,0x6,0x0,0x0,0x0,0x0,0x3fffc,0x40000,0x1,0x0,0xffff0003,0xffffffff,0x60000,0x800000,0x4,0x10002,0x10002,0x0,0x1,0x10000,0x4,0x10003,0x10002,0x1,0x0,0x10001,0x1,
0x40001,0x2,0x50001,0x3,0x60001,0x4,0x20001,0x5,0xffffffff,0xffffffff,0x0,0x0,0x4,0x20003,0x10000,0x80010003,0x80018001,0x8001,0x0,0x40000,0x101,0xfd100000,0x5,0x30001,0x80018001,0x80018001,0x0,0x0,0x0,0x10001,0x30688,0x0,0x10000,0x0,0x20000,0x0,0x0,0x0,0x10000,0x0,0x10000,0x20002,0x80000,0x80010003,0x80018001,0x8001,0x0,0x0,0x0,0x0,0x10001,0x848a0000,0x1004f010,0xc0,0x10828020,0x1000880,0x10828040,0x1010880,0x2a040,0x858c38a0,0x606f020,0x70e38ab,0x1000d01f,0x470e0081,
0x1000d03f,0x81,0x16000000,0x200a0,0x1d0000,0x80010003,0x80008001,0x8000,0x0,0x40000,0x0,0x10001,0x10001,0x10001,0x10000,0x10001,0x10001,0x10001,0x10001,0x10001,0x1,0x10000,0x10001,0x100011,0x1010000,0xfa100000,0x50001322,0xa31008,0xb020010d,0x38ab8602,0xd05f070e,0x811000,0x400102,0x801600,0x50409322,0x831008,0x503f542a,0x831022,0xd02040ac,0x83100e,0xd020408e,0x831006,0x80204080,0x38ab8602,0x503f542a,0x831022,0xd02040ac,0x83100e,0xd020408e,0x831006,0x802f0081,0x38ab8602,0x703f5a01,0x831002,0x50405a34,0x831086,0x2f0102,0x38ab8602,0x703f5a01,0x831002,0x50005a34,0x831084,0x503f142a,0x831022,
0xd020402c,0x83100e,0xd020400e,0x831006,0x10204130,0x811006,0xa0204140,0x38ab8606,0x703f5a01,0x831002,0x50205a34,0x831086,0x20300001,0x38880606,0xf0040080,0x40831c3e,0x900400b4,0x40811c32,0x6,0xe030000,0x55535020,0x20,0x302,0x1,0x0,0x0,0x2a4,0x80,0x2,0x7d,0x0,0x8,0x0,0xffffffff,0x0,0x770009,0xffff,0x60003,0x0,0x30000,0x6,0x0,0x0,0x0,0x0,0x1fffc,0x40000,0x1,0x0,0xffff0003,0xffffffff,0x60000,0x800000,0x4,0x10002,0x10002,0x0,0x1,0x10000,0x4,0x10003,0x10002,0x1,0x0,
0x10001,0x1,0x40001,0x2,0x50001,0x3,0x60001,0x4,0x20001,0x5,0xffffffff,0xffffffff,0x0,0x0,0x4,0x20003,0x20000,0x80010003,0x80018001,0x8001,0x0,0x40000,0x1010000,0x0,0xfd10,0x1000a000,0x52883,0x10000,0x80010003,0x80018001,0x8001,0x0,0x0,0x10000,0x6880001,0x1,0x0,0x0,0x0,0x2,0x0,0x0,0x0,0x10001,0x0,0x20001,0x2,0x30008,0x80018001,0x80018001,0x0,0x0,0x0,0x0,0x10000,0x1,0xf050048a,0xc01000,0x80000000,0x8801080,0x80200100,0x8801080,0x408080,0x38a00000,
0xf000858c,0x38ab0600,0xd01f070e,0x811000,0xd03f470e,0x811000,0x0,0xa01600,0x2,0x3001d,0x80018001,0x80008000,0x0,0x0,0x4,0x10000,0x10001,0x10001,0x1,0x10001,0x10001,0x10001,0x10001,0x10001,0x10001,0x0,0x10001,0x10001,0x0,0x101,0x1322fa10,0x10085060,0xc10d00a3,0x86003000,0x70e38ab,0x1000d05f,0x1020081,0x16000040,0x93220080,0x100850a0,0x542a0083,0x1020501f,0xac0083,0x1008d000,0x8e0083,0x1000d000,0x30083,0x86000001,0x542a38ab,0x1020501f,0xac0083,0x1008d000,0x8e0083,0x1000d000,0x40083,0x8600000f,0x5a0138ab,0x1000701f,0x1a340083,0x10805020,0x2850083,0x8600000f,0x5a0138ab,0x1000701f,
0x1a340083,0x10805040,0x142a0083,0x1020501f,0x2c0083,0x1008d000,0xe0083,0x1000d000,0x2b00083,0x10001000,0xc00081,0x86002000,0x5a0138ab,0x1000701f,0x1a340083,0x10805000,0x1000083,0x6040030,0x803888,0x1c3cf004,0xb44083,0x1c301004,0x64081,0x10000000,0x0,0x0,0x83f9223e,0xdb0fc940,0x3db9583c,0xb5d9493c,0xfc5f1e3c,0x3f,0x0,0x0,0x0,0x803f,0xdb0f49c0,0x0,0x0,0x0,0x54730600,0x6b636968,0x7373656e,0x786554,0x3180000,0x1000001,0x20000,0x1000100,0x65540000,0x6f6f4378,0x6472,0x2060300,0x10000,0x100,0x30002,0x78614d00,0x69726156,0x6f697461,0x6e,0x30302,0x100,0x1000001,0x100,0x546e694d,
0x6b636968,0x7373656e,0x2000000,0x303,0x1000001,0x10100,0x4c000001,0x74686769,0x65746e49,0x7469736e,0x79,0x20602,0x100,0x1040001,0x100,0x56736f43,0x41776569,0x656c676e,0x2000000,0x206,0x1000001,0x10800,0x1,
};

// Register FragShader.fsc in memory file system at application startup time
static CPVRTMemoryFileSystem RegisterFile_FragShader_fsc("FragShader.fsc", _FragShader_fsc, 1883);

// ******** End: FragShader.fsc ********

